import request from "@/utils/request";

/**
 * @description 招聘会列表
 * @param params
 * @returns {Promise}
 */
export function findAllByCrtTimeApi(params) {
    return request({
        url: '/findAllByCrtTime',
        method: 'GET',
        params
    })
}
/**
 * @description 招聘会列表
 * @param params
 * @returns {Promise}
 */
export function getEnterpriseListApi(params) {
    return request({
        url: '/getEnterpriseList',
        method: 'GET',
        params
    })
}
/**
 * @description 根据ID查询招聘会
 * @param params
 * @returns {Promise}
 */
export function findAllByIdApi(params) {
    return request({
        url: '/findAllById',
        method: 'GET',
        params
    })
}

/**
 * @description 查询参会企业
 * @param params
 * @returns {Promise}
 */
export function getByFairApi(data) {
    return request({
        url: '/getEnterpriseByFair',
        method: 'post',
        data
    })
}
/**
 * @description 查询参会岗位
 * @param params
 * @returns {Promise}
 */
export function getPublishByFairApi(params) {
    return request({
        url: '/getPublishByFair',
        method: 'get',
        params
    })
}

/**
 * @description 企业参加招聘会
 * @param params
 * @returns {Promise}
 */
export function insertFairCompanyApi(data) {
    return request({
        url: '/insertFairCompany',
        method: 'post',
        data
    })
}
/**
 * @description 企业参加招聘会岗位
 * @param params
 * @returns {Promise}
 */
export function getMyPublishByFairApi(params) {
    return request({
        url: '/getMyPublishByFair',
        method: 'get',
        params
    })
}

/**
 * @description 参会企业详情
 * @param params
 * @returns {Promise}
 */
export function getEnterpriseDetailsApi(data) {
    return request({
        url: '/getEnterpriseDetails',
        method: 'post',
        data
    })
}
